<?php
/**
 * 基础物料扩展数据结构
 *
 * @author kamisama.xia@gmail.com
 * @version 0.1
 */

$db['basic_material_ext']=array (
    'columns' =>
        array (
            'bm_id' =>
                array (
                    'type' => 'int unsigned',
                    'required' => true,
                    'width' => 110,
                    'hidden' => true,
                    'editable' => false,
                    'pkey' => true,
                ),
            'cost' =>
                array (
                    'type' => 'money',
                    'default' => '0.000',
                    'label' => '物料成本价',
                    'width' => 110,
                ),
            'retail_price' =>
                array (
                    'type' => 'money',
                    'default' => '0.000',
                    'label' => '物料售价',
                    'width' => 75,
                ),
            'weight' =>
                array (
                    'type' => 'decimal(20,3)',
                    'label' => '重量',
                    'default' => '0.000',
                    'width' => 110,
                    'editable' => false,
                ),
            'unit' =>
                array (
                    'type' => 'varchar(20)',
                    'label' => '包装单位',
                    'width' => 100,
                    'editable' => false,
                ),
            'specifications' =>
                array(
                    'type' => 'varchar(255)',
                    'label' => '物料规格',
                    'width' => 100,
                    'editable' => false,
                ),
            'brand_id' =>
                array(
                    'type' => 'number',
                    'label' => '品牌id',
                    'width' => 150,
                    'editable' => false,
                ),
            'cat_id' =>
                array(
                    'type' => 'number',
                    'label' => '物料类型id',
                    'width' => 100,
                    'editable' => false,
                ),
        ),
    'comment' => '基础物料扩展表',
    'engine' => 'innodb',
    'version' => '$Rev:  $',
);
